/*
package java8.stream;

import java8.Person;

import java.util.*;
import java.util.stream.Collectors;
import java.util.stream.Stream;

public class Demo2 {

    public static void main(String[] args) {


        List<Person> l1 = new ArrayList<>();
        l1.add(new Person(){{
            setName("wentf");
        }});

        List<Person> l2 = new ArrayList<>();
        l2.add(new Person(){{
            setName("222");
        }});
        Map<String, List<Person>> map = new HashMap<>();
        map.put("aa", l1);
        map.put("bb", l2);

        List<Person> list = map.entrySet().stream().flatMap(entry -> entry.getValue().stream())
                .collect(Collectors.toList());

        Stream<List<Person>> stream = map.values().stream();
        stream.map(val->val)

        Stream<Map.Entry<String, List<Person>>> stream1 = map.entrySet().stream();
        stream1.flatMap()


        list.stream().forEach(System.out::println);
    }
}
*/
